package com.Archive.firstWeek;

import java.util.Random;

public class Multidimensional_Arrays {
    public static void main(String[] args) {

        Random random = new Random();
        int[][][] arr = new int[3][3][3];
        for (int i = 0; i < arr.length; i++) {
            for (int j = 0; j < arr[i].length; j++) {
                for (int k = 0; k < arr[j].length; k++) {
                    arr[i][j][k] = random.nextInt(100);
                }
            }
        }
        for (int[][] x : arr) {
            for (int[] y : x) {
                for (int z : y) {
                    System.out.print(z + "\t");
                }
                System.out.println();
            }

            System.out.println("\n--------\n");
        }

    }
}
